package com.example.administrator.alarmmanagerdemo1;

import android.app.Service;
import android.content.Intent;
import android.net.Uri;
import android.os.IBinder;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/9/22.
 */

public class FirstService extends Service {
    @Override
    public IBinder onBind(Intent arg0){
        return null;
    }

    public void onCreate() {
        MainActivity app = MainActivity.getApp();
        app.btEvent("from FirstService");
//        Toast.makeText(this,"系统自带的service",Toast.LENGTH_LONG).show();
        Intent I=new Intent(Intent.ACTION_DIAL, Uri.parse("tel://119"));
        startActivity(I);

    }
}
